import request from '@/common/request.js'

let UserApi={
	getUserInfo(data={}){
		return request.post("/api/user/getUserInfo",data)
	},
	getTranslates(data={}){
		return request.post("/api/index/getTranslates",data)
	},
	uploadAvatar(data={},func){
		return request.upload("/api/user/uploadAvatar",data,func)
	},
	updateUser(data={}){
		return request.post("/api/user/updateUser",data)
	},
	detail(data={}){
		return request.post("/api/user/detail",data)
	}
}
export default UserApi